{% autoescape off %}
<!DOCTYPE html >
<html  xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
{% block head_ext %}
{% endblock %}

{% block meta_ext %}
{% endblock %}

<title>
{% block title %}
秀图吧 - {% block title_descn %}秀出你的精彩！{% endblock %}
{% endblock %}
</title>

   <link rel="stylesheet" type="text/css" href="/site_media/bs/css/bootstrap.min.css">
    <script src="/site_media/bs/js/jquery.js"></script>
    <script src="/site_media/bs/js/bootstrap.js"></script>
<style type="text/css">

{% block ext_style %}{% endblock %}

</style>




    {% block ext_js_head_inc %}
    {% endblock %}
<script language="javascript">
    $(document).ready(function(){
    url=document.URL;
s=url.split("/")
a=s[3]
                switch(a){
                    case "allrecommends":{n=$("[href='/allrecommends/']")
                                                n.css("color","blue")
                                                n.css("font-size","1.3em")
                                                n.css("font-weight","bolder")
                                                break;
                                            };


                    case "allhotphotos":{n=$("[href='/allhotphotos/']")
                                                                    n.css("color","blue")
                                                                    n.css("font-size","1.3em")
                                                                    n.css("font-weight","bolder")
                                                                };break;
                    case "allnewphotos":{n=$("[href='/allnewphotos/']")
                                                                    n.css("color","blue")
                                                                    n.css("font-size","1.3em")
                                                                    n.css("font-weight","bolder")
                                                                };break;
                    case "allcomments":{n=$("[href='/allcomments/']")
                                                                    n.css("color","blue")
                                                                    n.css("font-size","1.3em")
                                                                    n.css("font-weight","bolder")
                                                                };break;
                    case "space":    {n=$("[href='/space/']")
                                                                    n.css("color","blue")
                                                                    n.css("font-size","1.3em")
                                                                    n.css("font-weight","bolder")
                                                                };break;

                    default:{n=$("[href='/']")
                                                                    n.css("color","blue")
                                                                    n.css("font-size","1.3em")
                                                                    n.css("font-weight","bolder")
                             }
                }
})

</script>

    {% block ext_js_head %} {% endblock %}

</head>

<body background="/site_media/images/bg.gif">

<div class="row-fluid">
<div class=" span12" >

<div class="navbar  navbar-inner">
<a href="/" class="brand">  </a>
<a class="brand" href="/"> <img src="/site_media/images/logo.png"/></a>

    <ul class="nav">
    <li><a  href="/">首页</a></li>
    <li><a href="/allnewphotos/">最新</a></li>
    <li><a  href="/allhotphotos/">热点</a></li>
    <li><a  href="/allcomments/">评论</a></li>
    {%if user.is_authenticated%}
    <li ><a class="roundTop" href="/space/">空间</a></li>
    {%endif%}
    </ul>

    <form method="get" action="" target="_top" class="form-inline" >
        <ul class="nav pull-right">
            {% if not user or user.is_anonymous %}
                <li><a href="/userpanel/login/">登录</a></li>
                <li class="divider"></li>
                <li><a href="/userpanel/signup/">注册</a></li>
            {% else %}
                {% load msgtags %}
                <li><a href="/msgbox/inbox/"> <span class="icon-envelope"></span> {% new_msg_count %} 未读</a></li>
                <li><a>{{user}}</a> </li>
                <li><a href="/userpanel/logout/">  退出</a></li>
            {% endif %}
                <li class="divider"></li>


<li >
        <input name="q" size="10"  type="text" class="input search-query" style="width: 86px;">
</li>
       <li >
    <select name="sitesearch" class="" id="ss1" style="width: 76px;">
 <option selected="selected" value="">全部 </option>
 <option value="author">作者</option>
 <option value="tag">Tag </option>
 <option value="title">图片名称</option>
 <option value="desciption">图片描述</option>
 <option value="comment">评论</option>
</select>
       </li>

<li ><a href="/search/" >搜索</a> </li>

       </ul>
    </form>



</div>
</div>
</div>


<div class="raw-fluid">
{% block middle %}
         {% block main %}

            <div id="layoutleft" class="span1">
			<div>{% block layoutleft %}{% endblock %}</div>
            </div>

            <div id="layoutmid" class="span7">
                  {% block layoutmid %}
  				<div id="breadcrumb">
                  {% block breadcrumb %}
                  {% endblock %}
                </div>
                     {% block layoutmid_content %}
                     {% endblock %}

                  {% endblock %}
            </div>

			<div id="layoutright" class=" span3 " >
			{% block layoutright %}{% endblock %}
            </div>

            <div id="rightend" class="span1">

            </div>

		    {% endblock %}
            {% endblock %}
         </div>





<script language="javascript">
<!--
{% block ext_js_footer %}{% endblock %}
-->
</script>

{% block ext_js_footer_inc %}{% endblock %}
<div></div>


</body></html>
{% endautoescape %}